<?php /* Smarty version 2.6.16, created on 2013-08-20 21:37:37
         compiled from ../templates/admin/contact/contact.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'base64_encode', '../templates/admin/contact/contact.tpl', 71, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/checkall.js" /></script>'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
'; ?>

 <div class="contain">

      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      
      <div class="right_contain">
        
         <div class="heading_box">Manage Inquiry <a href="javascript:;" class="someClass" title="<?php echo $this->_tpl_vars['moduelArray']['module_help_text']; ?>
" style="float:right;"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/topic_icon6.png" /></a></div>
         <div class="whitebox">
         
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
         	<?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         
         <div>
          <!--Form Contain start-->
           
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
            <form name="searchFrm" id="searchFrm" method="post" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=contact">
            <input type="hidden" id="hidden_pageno" name="hidden_pageno" value="<?php echo $this->_tpl_vars['page']; ?>
"/> 
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
                    	<td align="left"></td>
                        <td align="right">
                        
                        &nbsp;<input type="text" name="search" id="search" class="input41" value="<?php if ($this->_tpl_vars['search'] != ''):  echo $this->_tpl_vars['search'];  else: ?>Search By Name<?php endif; ?>" onfocus="this.value=''" onblur="if(this.value=='')this.value='Search By Name'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=contact';" /></td>
                    </tr>
                </table>
            </form>
            

            <form name="frm" id="frm" action="" method="post" >
             <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="5%" align="center">#</th>
                <th width="2%"><input type="checkbox" name="check" id="check"  /></th>
                <th width="20%">Name</th>
               <!-- <th width="20%">Subject</th>-->
                <th width="10%">Status</th>
                <th width="10%">Admin Reply</th> 
                <th width="18%">Email</th>
                <th width="16%">Action</th>
              </tr>
              <?php if ($this->_tpl_vars['contactArray']): ?>
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['contactArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              <tr class="inactiverow" id="tr_<?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id']; ?>
">
                <td align="center"><?php echo $this->_tpl_vars['newid']; ?>
</td>
                <td><input type="checkbox" name="checkall[]" id="checkall_<?php echo $this->_sections['i']['iteration']; ?>
" value="<?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id']; ?>
" /></td>
                <?php if ($this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['status'] == unanswered): ?>
                <td>
               <strong><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=detail_contact&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['name']; ?>
</a></strong>
                </td>
                <?php else: ?>
                 <td>
                <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=detail_contact&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['name']; ?>
</a>
                </td>
                <?php endif; ?>
                <!--<td><?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['subject']; ?>
</td>-->
                <td><?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['readflag']; ?>
</td>
                <td><?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['status']; ?>
</td>
                <td><?php echo $this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['email_id']; ?>
</td>
                
                <td>
                   
                  	
                     <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=detail_contact&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/reply_icon.gif" title="Inquiry Reply" /></a></span>
                    <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=reply&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon-search.png" title="View Reply" /></a></span>
                    <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=contact&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['contactArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&action=delete&page=<?php echo $this->_tpl_vars['page']; ?>
" onclick="javascript:return confirm('Are you sure do you want to delete this record?');"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon-delete.png" title="Delete Inquiry"/></a></span>
                </td>
              </tr>
              <!-- <?php echo $this->_tpl_vars['newid']++; ?>
 -->
              <?php endfor; endif; ?>
              <?php else: ?>
              <tr>
               <td colspan="7" align="center" class="error">Record Not Found</td>
              </tr>
              <?php endif; ?>
               <tr>
                <td colspan="7">
                <?php if ($this->_tpl_vars['contactArray']): ?> 
                <div class="select_box">
                <select name="action" id="action" class="input width">
                  <option value="">Select</option>
                  <option value="read">Read</option>
                  <option value="unread">Unread</option>
                  <option value="delete">Delete</option>
                  </select>&nbsp;<input type="submit" class="admin_btn" value="Go" name="go" id="go" /><div id="errormsg" class="error"></div> 
                  
                  </div>
                  <?php endif; ?>
                  <div class="pagination">
                  <?php if ($this->_tpl_vars['pagination']):  echo $this->_tpl_vars['pagination'];  endif; ?>
                  </div>
                   </td>
                  
              </tr>
            </table>
</form>
            

         </div>
            <!--Form Contain end--> 
          
         </div>
         
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>